<?php
    $title              = $this->formText('title', $this->Item['title'], array('class'=>'txtmedium', 'style'=>'width:80%'));
    $content            = $this->formTextarea('content', $this->Item['content'], array('cols'=>'166','rows'=>'10'));
    $currLargeImg       = $this->Item['imglarge'];
    $currSmallImg       = $this->Item['imgsmall'];
    $urlSlide           = SLIDE_URL;
    $showCurrLargeImg   = '<img style="width:382px; height:170px" src="'.$urlSlide.'/'.$currLargeImg.'" />';
    $showCurrSmallImg   = '<img style="width:50px; height:25px" src="'.$urlSlide.'/'.$currSmallImg.'" />';
    $status 		= ($this->Item['status'] == 1) ? 'Active' : 'Inactive';
    $order 		= $this->Item['order'];
    $uidcreated         = $this->Item['uidcreated'];
    $datecreated        = ($this->Item['datecreated'] != '0000-00-00 00:00:00') ? date("m/d/Y H:i:s", strtotime($this->Item['datecreated'])) : '';
    $uidupdated         = $this->Item['uidupdated'];
    $dateupdated        = ($this->Item['dateupdated'] != '0000-00-00 00:00:00') ? date("m/d/Y H:i:s", strtotime($this->Item['dateupdated'])) : '';
?>
<div id="content-box">
            <div class="border">
                <div class="padding">

                    <form name="appForm" method="post" action="" enctype="multipart/form-data">
                        <?php echo $this->render('slide/toolbar/index.php');?>
						<div class="clr"></div>
						<?php echo $this->render('slide/sublink/index.php');?>

                        <!-- BEGIN: CONTENT -->
                        <div id="element-box">
                            <div class="t">
                                <div class="t">
                                    <div class="t"></div>
                                </div>
                            </div>
                            <div class="m">
                                <!-- BEGIN: ELEMENT BOX -->
                                <div id="adminfieldset">
                                    <div class="adminheader">Detail</div>
                                    
                                    <div id="row">
                                        <div class="label">Title</div>
                                        <!-- <input type="text" name="code" id="code" value="" class="txtshort"> -->
                                        <?php echo $title;?>
                                    </div>
                                    <div id="row">
                                        <div class="label">Content</div>
                                        <!-- <input type="text" name="code" id="code" value="" class="txtshort"> -->
                                        <?php echo $content;?>
                                    </div>
                                    <div class="clr"></div>
                                    <div id="row">
                                        <div class="label">Large Image</div>
                                        <!-- <input type="text" name="code" id="code" value="" class="txtshort"> -->
                                        <?php echo $showCurrLargeImg;?>
                                    </div>
                                    <div class="clr"></div>
                                    <div id="row">
                                        <!-- <input type="text" name="code" id="code" value="" class="txtshort"> -->
                                        <?php echo $changeLargeImg; echo $sizeLargeImg;?>
                                    </div>
                                    <div class="clr"></div>
                                    <div id="row">
                                        <div class="label">Small Image</div>
                                        <!-- <input type="text" name="code" id="code" value="" class="txtshort"> -->
                                        <?php echo $showCurrSmallImg;?>
                                    </div>
                                    <div class="clr"></div>
                                    <div id="row">
                                        <!-- <input type="text" name="code" id="code" value="" class="txtshort"> -->
                                        <?php echo $changeSmallImg; echo $sizeSmallImg;?>
                                    </div>
                                    <div class="clr"></div>
                                    <div id="row">
                                        <div class="label">Status:</div>
                                        <?php echo $status;?>
                                    </div>
                                    <div class="clr"></div>
                                    
                                    <div id="row">
                                        <div class="label">Ordering:</div>
                                        <?php echo $order;?>
                                    </div>
                                    <div class="clr"></div>
                                    <div id="row">
                                        <div class="label">User created:</div>
                                        <?php echo $uidcreated;?>
                                    </div>
                                    <div class="clr"></div>
                                    <div id="row">
                                        <div class="label">Date created:</div>
                                        <?php echo $datecreated;?>
                                    </div>
                                    <div class="clr"></div>
                                    <div id="row">
                                        <div class="label">User updated:</div>
                                        <?php echo $uidupdated;?>
                                    </div>
                                    <div class="clr"></div>
                                    <div id="row">
                                        <div class="label">Date updated:</div>
                                        <?php echo $dateupdated;?>
                                    </div>
                                    <div class="clr"></div>
                                    
                                </div>
                                <!-- END: ELEMENT BOX -->	
                              	<div class="clr"></div>
                            </div>
                            <div class="b">
                                <div class="b">
                                    <div class="b"></div>
                                </div>
                            </div>
                        </div>
                        <!-- END: 	CONTENT -->
                    </form>


                    <div class="clr"></div>
                </div>
                <div class="clr"></div>
            </div>
        </div>

